Class sjl.Bind1stPredicate
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sjl.Bind1stPredicate

java.lang.Object
   |
   +----sjl.Bind1stPredicate

public class Bind1stPredicate
extends Object
implements Predicate1
A predicate adapter. The Bind1stPredicate class can wrap a Predicate2 class so that it appears as a Predicate1.
    Algo.find(list.begin(), list.end(), 
              new Bind1stPredicate(new PredLessInteger(), new Integer(5)));
The above example will return a iterator to the element in the list with a value less than 5.

Copyright © 1996 Finn Bock


Constructor Index

 o Bind1stPredicate(Predicate2, Object)
Specified the predicate and the value to use.

Method Index

 o compare(Object)
Call the specified predicate using value and the argument.

Constructors

 o Bind1stPredicate
  public Bind1stPredicate(Predicate2 pred,
                          Object val)
Specified the predicate and the value to use.

Methods

 o compare
  public boolean compare(Object o)
Call the specified predicate using value and the argument.

All Packages  Class Hierarchy  This Package  Previous  Next  Index